public Class SingleEmailMessage1
{

public static void SentEmailtoUsers(String email,ID id,string c,string s,Date d,string de,DateTime ed,string l,sobject who,sobject what,
                                      string sa,DateTime sd,DateTime adt,string ty,boolean isv)
{
        Messaging.Singleemailmessage mail =new Messaging.Singleemailmessage();
        mail.setToAddresses(new String[] {email});
        mail.setSubject('Event Has been Created');
        mail.setPlainTextBody('This is to notify that Event has been Created'+'\n https://na8.salesforce.com/'+id
        +'\n'+'Created by: '+c+'\n'+'Subject: '+s+'\n'+'Created Date: '+d.format()+'\n'+'Description:'+de+'\n'+
        'End DateTime:'+ed.format()+'\n'+'Location:'+l+'\n'+'Name:'+who+'\n'+'Related To:'+what+'\n'+'ShowAs:'+sa+'\n'+'Start DateTime:'+sd.format()+'\n'+'Activity DateTime:'+adt.format()+'\n'+'Type:'+ty+
        '\n'+'IsVisibleInSelfService:'+isv);
        // It's Compulsory to set activity false
        mail.setSaveAsActivity(false);
        Messaging.sendEmail(new Messaging.Singleemailmessage[] {mail}); 



}


}